<?php
/**
 * @link http://www.google.com/codesearch/p?hl=pl#ClAjVSS0SCQ/ffmpeg_build.php&q=ffmpeg%20lang:php&d=0
 */
class Tedi_PHP
{
	protected static $PHPVersion;
	
	public static function getVersion()
	{
		if(!self::$PHPVersion)
		{
			$array = explode('.',phpversion());
			$retval = $array[0];
			unset($array[0]);
			$retval .= '.'.implode($array);
			self::$PHPVersion = (float) $retval;
			
			unset($array);
			unset($retval);
		}
		
		return self::$PHPVersion;
	}
}